﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class master_MasterPage : System.Web.UI.MasterPage
{
    private int m_topMenu =0 ;
    public int TopMenu { get { return m_topMenu; }
        set
        {
            m_topMenu = value;
            ucLeftMenu1.TopMenu = value;
            ucTopMenu1.TopMenu = value;
        } 
    }

    private int m_leftMenu = 0;
    public int LeftMenu
    {
        get { return m_leftMenu; }
        set
        {
            m_leftMenu = value;
            ucLeftMenu1.LeftMenu = value;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (TopMenu == 1)
        {
            div1Cols.Visible = true;
            div2Cols.Visible = false;
        }
        else
        {
            div1Cols.Visible = false;
            div2Cols.Visible = true;
        }
    }
}
